﻿<Window x:Class="churchtool.Plugin.SermonUpload.View.ProgressDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{DynamicResource ProgressDialogView_Window_Title}" WindowStartupLocation="CenterOwner" 
        ShowInTaskbar="False"
        Icon="/SermonUpload;component/media/upload.ico"
        ResizeMode="NoResize" 
        Height="150" Width="300" WindowStyle="SingleBorderWindow" Closing="OnWindowClosing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="37" />
            <RowDefinition Height="32" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <!-- Progress Message -->
        <TextBlock Text="{Binding Path=ProgressMessage, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="0" HorizontalAlignment="Center"  Margin="0,13,0,5"/>
        <ProgressBar Value="{Binding Path=Progress, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Maximum="{Binding Path=ProgressMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Grid.Row="1" HorizontalAlignment="Stretch" Margin="20,5,20,5"/>
        <Button Content="{DynamicResource ProgressDialogView_Button_Cancle}" Command="{Binding Path=Cancel}" Grid.Row="2" Width="75" HorizontalAlignment="Center" Margin="0,5,0,15" />
    </Grid>
</Window>
